package com.briup.smartlabs.mapper.ex;

import java.util.List;

import com.briup.smartlabs.bean.ex.Device;
import org.apache.ibatis.annotations.Param;

public interface DeviceMapper {
	//按照设备类型删除设备
//	int deleteByDeviceType(String typeId);

	//将指定实验室中所有设备进行解绑
	int unbindDeviceByLabsId(@Param("labsId") List<String> labsId);

	List<Device> findByCondition(@Param("typeId") String typeId, @Param("key") String key);

	Device selectById(String id);

	void deleteById(String id);

	List<String> findByIds(String[] ids);

	void deleteByBatch(List<String> ids);

    void insert(Device type);

	void updateById(Device type);

	int getCountByDeviceAddr(String devAddr);
}



